<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 0;
            height: 0;
            border-top: 20px solid red;
            border-right: 20px solid rebeccapurple;
            border-bottom: 20px solid darkgreen;
            border-left: 20px solid darkcyan;
        }
        p {
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 20px;
            border-color:  transparent  transparent transparent rebeccapurple;
        }
    </style>
</head>
<body>
    <div></div>
    <p></p>
</body>
</html>